package com.xintai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 热卷材质对象 erp_caizhi
 * 
 * @author xintai
 * @date 2021-01-15
 */
public class ErpCaizhi extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long czId;

    /** 材质名称 */
    @Excel(name = "材质名称")
    private String czName;

    /** 维护人 */
    private Long userId;

    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date czTime;

    public void setCzId(Long czId) 
    {
        this.czId = czId;
    }

    public Long getCzId() 
    {
        return czId;
    }
    public void setCzName(String czName) 
    {
        this.czName = czName;
    }

    public String getCzName() 
    {
        return czName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCzTime(Date czTime) 
    {
        this.czTime = czTime;
    }

    public Date getCzTime() 
    {
        return czTime;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return "ErpCaizhi{" +
                "czId=" + czId +
                ", czName='" + czName + '\'' +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", czTime=" + czTime +
                '}';
    }
}
